// Throw a Error
export const Throwable = (msg: string): any => {
  throw new Error(msg);
};

export const isAsync = (func: Function) => {
  const key = "eval";
  const eva = window[key];
  return func.constructor === eva("(async ()=>{}).constructor");
};
export const isWeb = () => !!window;
export * from "./pendingPromise";
export * from "./asyncLock";
export * from "./aw";
